import Vue from 'vue'
import antd from 'ant-design-vue'
import photoSwipe from 'kuan-vue-photoswipe'
import '@/styles/index.scss'
import 'ant-design-vue/dist/antd.css'

import request from '@/utils/request'

import App from './App.vue'
import router from './router'
import store from './store'

import components from '@/common'
import mixins from '@/utils/mixins'
import directives from '@/utils/directives'

Vue.prototype.$http = request
Vue.prototype.$bus = new Vue() // event bus

Vue.use(directives)

Vue.use(antd)
Vue.use(photoSwipe) // 多图预览
Vue.use(components)

Vue.mixin(mixins)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
